<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Shuka189\Controller;

/**
 * Description of Signup
 *
 * @author SoChishun
 */
class Signup extends \Think\Controller {

    public function index() {
        $this->display();
    }
    
    public function signupSave(){
        $mRegis=new \XWAM\Model\RegistrationModel();
        $result=$mRegis->regist(I('post.'));
        if($result['status']){
            $this->success('注册成功，请重新登录!',U('Login/index'));
        }else{
            $this->error(implode('<br />', $result['info']));
        }
    }
}
